package com.xr.service;

import com.xr.exception.CustomException;
import com.xr.pojo.SetMeal;
import com.xr.query.QueryPageBean;
import com.xr.result.PageResult;

import java.util.List;
import java.util.Map;

public interface SetMealService {

    //热门套餐:前四条
    Map<String, Object> getBusinessReportData();

    //获取套餐的预约数量
    List<Map<String, Object>> findSetmealCount();

    //条件查询加分页
    PageResult findPage(QueryPageBean queryPageBean);

    //添加
    void addSetMealCheckGroup(SetMeal meal, Integer[] checkGroupIds);

    //通过套餐管理id选中检查组id
    List<Integer> selectSetMealBYGroup(Integer setmeal_id);

    //根据id查询
    SetMeal findById(Integer id);

    //根据id查询前台
    SetMeal queryById(Integer id);

    //五表联查
    SetMeal QueryById(Integer id);

    //五表联查2
    SetMeal QueryById2(Integer id);

    //五表联查3
    SetMeal QueryById3(Integer id);

    //删除
    Integer DelSetMeal(Integer id) throws CustomException;

    void update(SetMeal meal, Integer[] groupIds);

    List<SetMeal> findAll();
}
